package org.example.test.service.impl;

import org.example.test.entity.Project;
import org.example.test.mapper.ProjectMapper;
import org.example.test.service.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProjectServiceImpl implements ProjectService {
    @Autowired
    ProjectMapper projectMapper;
    @Override
    public List<Project> findAll(String projectName) {
        return projectMapper.findAll(projectName);
    }

    @Override
    public int delete(Integer projectId) {
        return projectMapper.delete(projectId);
    }

    @Override
    public int update(Project project) {
        return projectMapper.update(project);
    }

    @Override
    public int add(Project project) {
        return projectMapper.add(project);
    }


}
